Suppose a new instance variable is declared for the Person class: a character array of length 80 called 'name'. Remember that array names are considered in C to represent the address of the first element of the array. Therefore the following use of the standard string copy function may also cause program bombs:
void Person::set(void)
{
strcpy(name,"Jack Knapp"); /* may cause bombs in TC */
}
Instead, the programmer must assign each character one by one (or write a string-copy function which doesn't move memory):